package com.mengxingyun.shortlink.admin.dto.resp;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.mengxingyun.shortlink.admin.common.serialize.PhoneDesensitizationSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 用户返回参数响应
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserRespDTO{

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 真实姓名
     */
    private String realName;

    /**
     * 手机号
     */
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String phone;

    /**
     * 邮箱
     */
    private String mail;

}
